function helloController($scope) {
	$scope.hello = "Hello ";
	$scope.person = {
		firstName : "Tom",
		lastName : "cheng",
		fullName : function() {
			return $scope.person.lastName;
		}
	};
	$scope.show = function() {
		return $scope.hello+$scope.person.firstName+$scope.person.lastName;
	};
}
function testController($scope,$http){
	$http.get("../json/title.json")
		.success(function(result){
			$scope.msg = result[0].title;
		}); 
}
function bookController($scope,$http){
	$http.get("../json/books.json")
		.success(function(result){
			$scope.books = result;
		}); 
	$scope.getBy = function(bookId){
		for(var i=0;i<$scope.books.length;i++){
			if($scope.books[i].Id==bookId){
				return $scope.books[i];
			}
		}
		return null;
	};
}
//薪资管理控制器
function taxController($scope){
	$scope.basicSalary=8000;
}
